package com.amigo.online.provider.manager.model.entity;


import javax.persistence.Column;
import javax.persistence.Table;

import org.apache.ibatis.type.Alias;

import com.amigo.online.provider.manager.util.param.dto.PageDto;

@Table(name = "goods_comment_tbl")
@Alias(value = "goodsCommentTbl")
public class GoodsCommentTbl extends PageDto {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * 商品活动id
     */
    @Column(name = "goods_id")
    private Long goodsId;

    /**
     * 评论者id  匿名为0
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 等级（1-5星）2星及以上算好评
     */
    @Column(name = "star")
    private Integer star;

    /**
     * 评论内容
     */
    @Column(name = "content")
    private String content;

    /**
     * 商家回复评论
     */
    @Column(name = "back_content")
    private String backContent;

    /**
     * 商家回复时间
     */
    @Column(name = "back_time")
    private Long backTime;

    @Column(name = "updated_time")
    private Long updatedTime;

    /**
     * 1删除 0未删除
     */
    @Column(name = "deleted")
    private Integer deleted;

    @Column(name = "deleted_time")
    private Long deletedTime;


    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getBackContent() {
        return backContent;
    }

    public void setBackContent(String backContent) {
        this.backContent = backContent;
    }

    public Long getBackTime() {
        return backTime;
    }

    public void setBackTime(Long backTime) {
        this.backTime = backTime;
    }

    public Long getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Long updatedTime) {
        this.updatedTime = updatedTime;
    }


    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Long getDeletedTime() {
        return deletedTime;
    }

    public void setDeletedTime(Long deletedTime) {
        this.deletedTime = deletedTime;
    }


}
